package com.kits.store.db;
import java.util.List;
public class FileBeanHelper {
    private FileBeanHelper(){

    }
    private static class SingletonHolder{
        private final static FileBeanHelper instance=new FileBeanHelper();
    }
    public static FileBeanHelper getInstance(){
        return SingletonHolder.instance;
    }
    private FileBeanDao fileBeanDao;

    public void init(DaoSession daoSession){
        fileBeanDao = daoSession.getFileBeanDao();
    }

    public void insert(FileBean bean){
        fileBeanDao.insert(bean);
    }


    public void query(String dir,String fileName){

    }

    public void queryAll(){
        List<FileBean> list = fileBeanDao.loadAll();
        for (FileBean bean : list){
            System.out.println("bean == "+bean.toString());
        }
    }

}
